import './service_merhod.dart';
import '../config/url.dart';

Future loginApi(data) {
  return XHttp.postJson(BASE_URL + '/bicycle/users/login', data);
}

Future homeApi() {
  return XHttp.get(BASE_URL + '/bicycle/bikes/idleList');
}

Future rentBike(data) {
  return XHttp.postJson(BASE_URL + '/bicycle/rents/create', data);
}

Future myOrderApi(String params) {
  return XHttp.get(
    BASE_URL + '/bicycle/rents/myOrder/$params',
  );
}

Future updateRentApi(String params) {
  return XHttp.get(
    BASE_URL + '/bicycle/rents/updateRent/$params',
  );
}

Future searchRentApi(params) {
  return XHttp.get(
    BASE_URL + '/bicycle/bikes/searchList/$params',
  );
}

Future deleteRentApi(params) {
  return XHttp.get(
    BASE_URL + '/bicycle/rents/deleteRent/$params',
  );
}
